package com.dreamteam.schooling;

import android.app.Activity;
import android.app.LocalActivityManager;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;

public class MainActivity extends Activity {
    /** Called when the activity is first created. */
	private ImageView intro_img;
	Handler mHandler = new Handler();
	Runnable r = new Runnable() {
		
		public void run() {
			intro_img.setVisibility(View.GONE);
		}
	};
	
	private ImageButton timetablebtn;
	private ImageButton classboardbtn;
	private ImageButton searchbtn;
	private ImageButton settingbtn;
		
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
	    
       TextView timetableBtn = (TextView)findViewById(R.id.timetable_btn);
       timetableBtn.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				


				
			}
		});
 
        /*
		intro_img = (ImageView)findViewById(R.id.iu_bg);
		Animation alphaAnim = AnimationUtils.loadAnimation(MainActivity.this, R.anim.alpha);
		
		intro_img.startAnimation(alphaAnim);
		mHandler.postDelayed(r, 3000);
		
		timetablebtn = (ImageButton)findViewById(R.id.timetableImageButton);
		timetablebtn.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(MainActivity.this, TimeTableLandscapeActivity.class);
			     startActivity(intent);
				
			}
		});
		
		classboardbtn = (ImageButton)findViewById(R.id.ClassBoardImageButton);
		classboardbtn.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(MainActivity.this, TabMenuBarActivity.class);
			     startActivity(intent);
				
			}
		});
		
		searchbtn = (ImageButton)findViewById(R.id.SearchImageButton);
		searchbtn.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				
			}
		});
		
		settingbtn = (ImageButton)findViewById(R.id.SettingImageButton);
		settingbtn.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
			     Intent intent = new Intent(MainActivity.this, SettingMenuActivity.class);
			     startActivity(intent);
				
			}
		});*/
	
    }
}